package com.glasses.abc.view;

import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Jean-Luc Burot
 * @since 2014-10-24
 */
@ManagedBean
@SessionScoped
public class Seite {
    private int block1;
    private int block2;
    private int block3;
    private int block4;
    private int block5;
    private int z4;
    private int z5;
    
    public int getBlock1() {
        block1 = block1 + 1;
        System.out.println("getBlock1() = " + block1);
        return block1;
    }
    
    public int getBlock2() {
        block2 = block2 + 1;
        System.out.println("getBlock2() = " + block2);
        return block2;
    }
    
    public int getBlock3() {
        block3 = block3 + 1;
        System.out.println("getBlock3() = " + block3);
        return block3;
    }
    
    public int getBlock4() {
        block4 = block4 + 1;
        System.out.println("getBlock4() = " + block4);
        return block4;
    }
    
    public int getBlock5() {
        block5 = block5 + 1;
        System.out.println("getBlock5() = " + block5);
        return block5;
    }
    
    public int getZ4() {
        z4 = z4 + 1;
        System.out.println("getZ4() = " + z4);
        return z4;
    }
    
    public int getZ5() {
        z5 = z5 + 1;
        System.out.println("getZ5() = " + z5);
        return z5;
    }
    
    public boolean getZ4Enabled() {
        return z4 < 10;
    }
    
    public boolean getZ5Enabled() {
        return z4 >= 10;
    }
    
    public void createOutput() {
        System.out.println("SEX");
    }
}
